//
//  MineNav.swift
//  Motion
//
//  Created by 悦月越悦 on 2021/3/6.
//

import SwiftUI

struct NavBoard: View{
    var body: some View{
        HStack(spacing: 15){
            Spacer()
            NavItem(name: "身体数据")
            NavItem(name: "身体数据")
            NavItem(name: "身体数据")
            NavItem(name: "身体数据")
            Spacer()
        }
        .padding(.vertical, 16)
        .background(Color.white)
        .cornerRadius(10)
    }
}

struct NavItem: View{
    var name: String
    var body: some View{
        VStack{
            Image("身体数据")
                .squareImage(size: 40)
            Text("身体数据")
                .font(.system(size: 14, weight: .bold, design: .default))
        }
    }
}

struct MineNav_Previews: PreviewProvider {
    static var previews: some View {
        NavBoard()
    }
}

